<template>
  <div>
    <div class="title">周末去哪儿</div>
    <ul>
      <li class="item border-bottom" v-for="(item,index) in list" :key="index">
        <img class="item-img" :src="item.imgUrl" alt="#">
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    name: 'HomeWeekend',
    props: {
      list: Array
    }
  }
</script>

<style lang="stylus" scoped>
  .title
    line-height .8rem
    background-color #eee
    text-indent .2rem
    margin-top .2rem

  .item
    overflow hidden
    height 0
    padding-bottom 4.4rem
    display flex
    flex-direction column
    .item-img
      width 100%
    .item-info
      flex 1
      padding .2rem
      .item-title
        line-height 0.48rem
        font-size .28rem
      .item-desc
        line-height .48rem
        font-size .24rem

</style>
